<?php

declare(strict_types=1);

namespace app\shop\validate\admin;

use sheep\validate\Backend;

class Category extends Backend
{
    protected $rule = [
        'name' => 'require',
        'style' => 'require',
    ];

    protected $message  =   [
        'name.require'     => '请填写自定义分类名称',
        'style.require'     => '请选择分类样式',
    ];


    protected $scene = [
        'add'  =>  ['name', 'style']
    ];
}
